#pragma once
#include "CCArmature.h"
#include "cocos2d.h"
#include "define.h"
USING_NS_CC;
USING_NS_CC_EXT;


extern char* actIdname[ActIDTotal] ;
class AniNode :public CCNode
{
	MY_PROPERTY_READONLY(float,xspeed,xspeed);
	MY_PROPERTY_READONLY(float,yspeed,yspeed);
	MY_PROPERTY_READONLY(CCArmature*,Myarmature,Myarmature);
	MY_PROPERTY_READONLY(int32_t,curActId,curActId);
	
public:
	AniNode();
	~AniNode();
	int8_t preactDir;
	int8_t premoveDir;
	int8_t moveDir;
	int8_t actDir;
    // Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
	virtual void update(float);
	virtual void draw();
	virtual void onFrameEvent(CCBone *bone, const char *evt, int originFrameIndex, int currentFrameIndex);
	void setActid(int32_t,bool );
};

